﻿using LibraryManagementSystem.Models;
using LibraryManagementSystem.Models.Enum;
using System.ComponentModel.DataAnnotations.Schema;

public abstract class Libraryitem
{
    public int Id { get; set; }
    public string Title { get; set; } = null!;
    public string Author { get; set; } = null!;
    public int? CategoryId { get; set; }
    public decimal Price { get; set; }
    public int TotalCopies { get; set; }
    public int AvailableCopies { get; set; }
    [Column(TypeName = "varchar(20)")]
    public BookCategory Type { get; set; }
    public virtual Category? Category { get; set; }
    public virtual ICollection<Borrowrecord> Borrowrecords { get; set; } = new List<Borrowrecord>();
    public virtual ICollection<Reservation> Reservations { get; set; } = new List<Reservation>();

 
}